<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2008 XBRL International. All Rights Reserved. -->
<?xml-stylesheet type="text/xsl" href="../stylesheets/functionDefinition.xsl"?>
<function
  xmlns="http://xbrl.org/2008/function" 
  xmlns:reg="http://xbrl.org/2008/registry" 
  xmlns:xhtml="http://www.w3.org/1999/xhtml" 
  xmlns:xfi="http://www.xbrl.org/2008/function/instance" 
  xmlns:xfie="http://www.xbrl.org/2008/function/instance/error" 
  xmlns:xbrli="http://www.xbrl.org/2003/instance" 
  xmlns:xlink="http://www.w3.org/1999/xlink" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="
  http://xbrl.org/2008/registry ../schemas/registry.xsd
  http://xbrl.org/2008/function ../schemas/function.xsd
  ">

  <lastUpdated moment="2008-02-26T00:00:00" />

  <owners>
    <reg:owner id="geoff">
       <reg:name>Geoff Shuetrim</reg:name>
       <reg:affiliation>Galexy</reg:affiliation>
       <reg:email>geoff@galexy.net</reg:email>
       <reg:assumedOwnership moment="2008-02-20T10:06:00" />
    </reg:owner>
  </owners>

  <summary>
    Tests whether one the XML Schema data type of a concept 
    is derived from another XML Schema data type.
  </summary>

  <documentation>
  </documentation>

  <signature name="xfi:concept-data-type-derived-from">
    <input name="concept" type="xs:QName">
      <xhtml:p>
        The QName of the concept whose data type is being tested.
      </xhtml:p>
    </input>
    <input name="reference-data-type" type="xs:QName">
      <xhtml:p>
        The QName of the data type that the candidate
        concept's data type may or may not be derived from 
        by a sequence of one or more restrictions and/or extensions.
      </xhtml:p>
    </input>
    <output type="xs:boolean">
      <xhtml:p>
        If the candidate concept's data type is derived by restriction or extension 
        from the reference data type or if the candidate data type is the
        reference data type, then the function returns true.  Otherwise
        it returns false.
      </xhtml:p>
    </output>
  </signature>

  <conformanceTest xlink:type="simple" xlink:href="90205 xfi.concept-data-type-derived-from testcase.xml"/>

  <revisions>
    <reg:revision on="2008-02-20T10:12:00" by="geoff">
      <xhtml:p>
        Created the function definition.
      </xhtml:p>
    </reg:revision>
  </revisions>

</function>
